package com.tools.scanner.bean;

import android.graphics.Point;
import android.graphics.Rect;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.google.mlkit.vision.text.Text;

import java.util.List;

public class OcrItemInfo {

    @Nullable
    public final Point[] cornerPoints;
    @NonNull
    public final String originalText;
    @NonNull
    public final List<Text.Line> lines;
    @Nullable
    public String translateText = null;
    @Nullable
    public final Rect boundingBox;
    public boolean isTranslate = false;

    public OcrItemInfo(Point[] cornerPoints, List<Text.Line> lines, Rect boundingBox, String originalText) {
        this.cornerPoints = cornerPoints;
        this.lines = lines;
        this.originalText = originalText;
        this.boundingBox = boundingBox;
    }

}
